home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / External / CMochiBot.as < prev    next >
Text File  |  2011-08-19  |  7KB  |  255 lines

  1. package Local.External
  2. {
  3.    import flash.display.DisplayObject;
  4.    import flash.display.Loader;
  5.    import flash.display.Sprite;
  6.    import flash.events.Event;
  7.    import flash.events.IOErrorEvent;
  8.    import flash.net.URLRequest;
  9.    import flash.net.URLRequestMethod;
  10.    import flash.net.URLVariables;
  11.    import flash.system.Capabilities;
  12.    import flash.system.Security;
  13.    
  14.    public dynamic class CMochiBot extends Sprite
  15.    {
  16.       
  17.       public static function SHZ_BO_SHADEZWEBSITE_VISIT():*
  18.       {
  19.          Track("687d8c08");
  20.       }
  21.       public static function SHZ_BO_SPONSORVISIT_LEVELSELECTION():*
  22.       {
  23.          SHZ_BO_SPONSORVISIT_TOTAL();
  24.          Track("44e9c657");
  25.       }
  26.       public static function SHZ_BO_UNIQUES():*
  27.       {
  28.          Track("6d4f3ba4");
  29.       }
  30.       public static var mPending:Boolean = false;
  31.       
  32.       public static function SHZ_BO_LEVELSPLAYED():*
  33.       {
  34.          Track("e904578e");
  35.       }
  36.       private static var mStack:Array;
  37.       
  38.       public static function SHZ_BO_VISITS():*
  39.       {
  40.          Track("d1b4e487");
  41.       }
  42.       public static function SHZ_BO_SPONSORVISIT_MAIN():*
  43.       {
  44.          SHZ_BO_SPONSORVISIT_TOTAL();
  45.          Track("e62648e8");
  46.       }
  47.       public static function SHZ_BO_LEVELPLAY_1():*
  48.       {
  49.          SHZ_BO_LEVELSPLAYED();
  50.          Track("2f3329ce");
  51.       }
  52.       public static function SHZ_BO_LEVELPLAY_2():*
  53.       {
  54.          SHZ_BO_LEVELSPLAYED();
  55.          Track("0216f37e");
  56.       }
  57.       public static function SHZ_BO_LEVELPLAY_3():*
  58.       {
  59.          SHZ_BO_LEVELSPLAYED();
  60.          Track("0e03b60e");
  61.       }
  62.       public static function SHZ_BO_LEVELPLAY_4():*
  63.       {
  64.          SHZ_BO_LEVELSPLAYED();
  65.          Track("2790667b");
  66.       }
  67.       public static function SHZ_BO_GAMEGUIDE_VISIT():*
  68.       {
  69.          SHZ_BO_SPONSORVISIT_TOTAL();
  70.          Track("7241b30f");
  71.       }
  72.       public static function SHZ_BO_SPONSORVISIT_DEBRIEF():*
  73.       {
  74.          SHZ_BO_SPONSORVISIT_TOTAL();
  75.          Track("7750b6d3");
  76.       }
  77.       public static function SHZ_BO_ADSDISPLAYED():*
  78.       {
  79.          Track("cc77eee5");
  80.       }
  81.       public static function SHZ_BO_TRAILER_VISIT():*
  82.       {
  83.          SHZ_BO_SPONSORVISIT_TOTAL();
  84.          Track("f0eace5a");
  85.       }
  86.       public static function SHZ_BO_SPONSORVISIT_TOTAL():*
  87.       {
  88.          Track("7293a1f0");
  89.       }
  90.       public static var mRoot:DisplayObject;
  91.       
  92.       public static function SHZ_BO_ENCRYPTIONVISIT():*
  93.       {
  94.          Track("b7dc2c5d");
  95.       }
  96.       public static function SHZ_BO_HISCOREVIEWS():*
  97.       {
  98.          Track("c9d383f7");
  99.       }
  100.       public static function SHZ_BO_HISCOREPOSTED():*
  101.       {
  102.          Track("0d5a2988");
  103.       }
  104.       public static function SHZ_BO_MOCHIBOTVISIT():*
  105.       {
  106.          Track("39097efa");
  107.       }
  108.       public static function SHZ_BO_GAMESWEBSITE_VISIT():*
  109.       {
  110.          Track("1097373f");
  111.       } 
  112.       
  113.       private var mLoader:Loader;
  114.       
  115.       private var mTag:String;
  116.       
  117.       private var mReq:URLRequest;
  118.       
  119.       public function CMochiBot()
  120.       {
  121.          super();
  122.       }
  123.       
  124.       private static function e_IOERROR(param1:IOErrorEvent) : void
  125.       {
  126.          if(true)
  127.          {
  128.             mPending = false;
  129.             NextInStack();
  130.          }
  131.       }
  132.       
  133.       public static function Track(param1:String) : void
  134.       {
  135.          var _loc2_:CMochiBot = null;
  136.          var _loc3_:String = null;
  137.          var _loc4_:URLVariables = null;
  138.          var _loc5_:String = null;
  139.          var _loc6_:URLRequest = null;
  140.          var _loc7_:Loader = null;
  141.          if(Security.sandboxType == "localWithFile")
  142.          {
  143.             return;
  144.          }
  145.          if(param1 == null)
  146.          {
  147.             return;
  148.          }
  149.          _loc2_ = new CMochiBot();
  150.          Security.allowDomain("*");
  151.          Security.allowInsecureDomain("*");
  152.          _loc3_ = "http://core.mochibot.com/my/core.swf";
  153.          (_loc4_ = new URLVariables())["sb"] = Security.sandboxType;
  154.          _loc4_["v"] = Capabilities.version;
  155.          _loc4_["swfid"] = param1;
  156.          _loc4_["mv"] = "8";
  157.          _loc4_["fv"] = "9";
  158.          _loc5_ = mRoot.loaderInfo.loaderURL;
  159.          _loc4_["url"] = _loc5_.indexOf("http") == 0 ? _loc5_ : "local";
  160.          (_loc6_ = new URLRequest(_loc3_)).contentType = "application/x-www-form-urlencoded";
  161.          if(true)
  162.          {
  163.             _loc6_.method = URLRequestMethod.POST;
  164.             _loc6_.data = _loc4_;
  165.          }
  166.          _loc7_ = new Loader();
  167.          if(true)
  168.          {
  169.             _loc2_.mTag = param1;
  170.             if(true)
  171.             {
  172.                _loc2_.mLoader = _loc7_;
  173.                _loc2_.mReq = _loc6_;
  174.             }
  175.             Stack(_loc2_);
  176.          }
  177.       }
  178.       
  179.       private static function NextInStack() : void
  180.       {
  181.          var _loc1_:CMochiBot = null;
  182.          if(!mStack.length)
  183.          {
  184.             return;
  185.          }
  186.          _loc1_ = mStack.shift();
  187.          if(true)
  188.          {
  189.             _loc1_.addChild(_loc1_.mLoader);
  190.             if(true)
  191.             {
  192.                _loc1_.mLoader.load(_loc1_.mReq);
  193.                if(true)
  194.                {
  195.                   mPending = true;
  196.                }
  197.                _loc1_.mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,e_COMPLETE);
  198.             }
  199.             _loc1_.mLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,e_IOERROR);
  200.          }
  201.       }
  202.       
  203.       private static function e_COMPLETE(param1:Event) : void
  204.       {
  205.          mPending = false;
  206.          NextInStack();
  207.       }
  208.       
  209.       private static function Stack(param1:CMochiBot) : void
  210.       {
  211.          if(true)
  212.          {
  213.             ┬º┬ºpush(!mStack);
  214.             if(!!mStack)
  215.             {
  216.                ┬º┬ºpop();
  217.                if(true)
  218.                {
  219.                   addr28:
  220.                   if(!mStack.length)
  221.                   {
  222.                      if(true)
  223.                      {
  224.                         mStack = [param1];
  225.                         if(mPending)
  226.                         {
  227.                         }
  228.                         addr50:
  229.                         return;
  230.                         addr46:
  231.                      }
  232.                      NextInStack();
  233.                   }
  234.                   else
  235.                   {
  236.                      mStack.push(param1);
  237.                      ┬º┬ºgoto(addr50);
  238.                   }
  239.                   ┬º┬ºgoto(addr50);
  240.                }
  241.                ┬º┬ºgoto(addr46);
  242.             }
  243.             ┬º┬ºgoto(addr28);
  244.          }
  245.          ┬º┬ºgoto(addr50);
  246.       }
  247.       
  248.       public static function ActivateTracking(param1:DisplayObject) : void
  249.       {
  250.          mRoot = param1;
  251.          SHZ_BO_VISITS();
  252.       }
  253.    }
  254. }
  255.